package com.boot.mall.search.vo;

import com.boot.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.List;

/**
 * 查询返回对象
 */
@Data
public class SearchResult {

    private List<SkuEsModel> products;  //查询到的所有商品信息

    private Integer pageNum;    //页码数量
    private Long total; //商品总记录数
    private Integer totalPage;  //总的页码数
    private List<Integer> pageNavs; //页码数组

    private List<NavVo> navVos; //面包屑

    private List<BrandVo> brands;   //当前查询结果涉及到的品牌信息
    private List<CatalogVo> catalogs;   //当前查询结果涉及到的分类信息
    private List<AttrVo> attrs; //当前查询结果涉及到的属性信息

    @Data
    public static class NavVo{
        private String NavName;
        private String NavValue;
        private String link;
    }
    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }
    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }
    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
